package 抽象类;

public class Dog extends Animal{//定义一个非抽象Dog类
    @Override
    public void eat(){
        System.out.println("小狗吃骨头！");
    }
    @Override
    public void sleep(){
        System.out.println("小狗会睡觉！");
    }
    //测试在非抽象类中定义抽象方法
    //public abstract void run();会报错

}
